package com.chainyoung.common.appcommon.entity;

import java.io.Serializable;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * 本地钱包 数据库存储
 */
public class HdWalletCache extends RealmObject implements Serializable {

    private String mnemonic;//主助记词

    private String privateKey;//私钥

    private String publicKey;//公钥

    @PrimaryKey
    private String address;//钱包地址

    private String coinType;//币种名称

    private String balance = "0";//余额 数量 单位 ether

    private String banlanceCny = "0";// 余额 人民币

    @Deprecated
    private int logo;//已废弃

    private String cnName;//中文名

    private String walletName="";//钱包名

    private boolean isMainWallet;


    public HdWalletCache() {

    }


    public String getMnemonic() {
        return mnemonic;
    }

    public void setMnemonic(String mnemonic) {
        this.mnemonic = mnemonic;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCoinType() {
        return coinType;
    }

    public void setCoinType(String coinType) {
        this.coinType = coinType;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getBanlanceCny() {
        return banlanceCny;
    }

    public void setBanlanceCny(String banlanceCny) {
        this.banlanceCny = banlanceCny;
    }

    public int getLogo() {
        return logo;
    }

    public void setLogo(int logo) {
        this.logo = logo;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getWalletName() {
        return walletName;
    }

    public void setWalletName(String walletName) {
        this.walletName = walletName;
    }


    public boolean isMainWallet() {
        return isMainWallet;
    }

    public void setMainWallet(boolean mainWallet) {
        isMainWallet = mainWallet;
    }
}
